﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Customer1.aspx.cs" Inherits="Customer1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="TitleCustomer"> <p>Customer</p></div>
<table cellpadding="1px" cellspacing = "1px">
            <tr>
                <td>
                 FullName :
                </td>
                <td>
               <asp:TextBox runat="server" ID="txtName" Width="200px" Height="20px"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="Full Name is not empty" ForeColor="Red" 
                        ControlToValidate="txtName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Email :
                </td>
                <td>
                <asp:TextBox runat="server" ID="txtEmail" Width="200px" Height = "20px" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ErrorMessage="Email is not Empty" ForeColor="Red" 
                        ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ErrorMessage="Email is incorrect" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ForeColor="Red" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>Address :</td>
                <td>
                <asp:TextBox ID="txtAddress" runat="server" Width="200px" Height="20px" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ErrorMessage="Address is not Empty" ForeColor="Red" 
                        ControlToValidate="txtAddress"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Phone :</td>
                <td style="margin-left: 40px">
                <asp:TextBox runat="server" ID="txtPhone" Width="100px" Height="20px" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ErrorMessage="Phone is not empty" ForeColor="Red" 
                        ControlToValidate="txtPhone"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
            <td>Company : </td>
            <td><asp:TextBox ID="txtCompany" runat="server" Width = "200px" Height="20px" /></td>
            <td>

            </td>
            </tr>
            <tr>
                <td><asp:Button ID ="btnSubmit" runat="server" Text="Submit" 
                        PostBackUrl="~/Customer1.aspx" /></td>
                <td colspan="2"><input type="reset" value="Reset"/></td>
            </tr>
            
        </table>
</asp:Content>

